// 获取token
let token = localStorage.getItem('token');

// 引入axiso
const axios = require('axios');

// 配置axios
axios.defaults.baseURL = 'http://fitness.h5.itsource.cn:3701';
axios.defaults.headers.common['Authorization'] = 'Bearer ' + token;

// 暴露axios
module.exports = axios;
